#ifndef __DRV_CAN_LIB_H__
#define __DRV_CAN_LIB_H__
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
/**
 * @brief 标准帧掩码滤波
 * \param[in]  filter_numb:filter number,CAN0是从0到13，CAN1是从14到28
 * \param[in]  *id_table,ID指针
 * \param[in]  len id个数
 */
extern void CAN_Std_Mask_Filter(uint16_t filter_numb,uint32_t *id_table,uint16_t len);
/*!
    \brief      CAN_Std_List_Filter:标准帧列表模式配置
    \param[in]  filter_numb:filter number,CAN0是从0到13，CAN1是从14到28
    \param[in]  *id_table ID指针
    \param[out] none
    \retval     none
*/
extern void CAN_Std_List_Filter(uint16_t filter_numb,uint32_t *id_table);

/**
 * @brief 扩展帧掩码滤波
 * \param[in]  filter_numb:filter number,CAN0是从0到13，CAN1是从14到28
 * \param[in]  *id_table ID指针
 * \param[in]  len 长度
 */
extern void CAN_Ext_Mask_Filter(uint16_t filter_numb,uint32_t *id_table,uint16_t len);

/*!
    \brief      CAN_Ext_List_Filter:扩展帧列表滤波
    \param[in]  filter_numb:filter number CAN0是从0到13，CAN1是从14到28
    \param[in]  *id_tab：ID号数组指针，最大长度为2
    \param[out] none
    \retval     none
*/
extern void CAN_Ext_List_Filter(uint16_t filter_numb,uint32_t *id_tab);


#endif /* DRV_CAN_LIB_H */
